package com.wgts.wgts.netmodle.resp;

import android.os.Parcel;
import android.os.Parcelable;

/*
 *
 *
 *   data:2018/9/2918:46
 *
 */public class MyCenterMessageEntity implements Parcelable{
     public String userNickName;
     public String userImage;
     public String userPhone;
     public String userCode;
     public boolean  modifyPayPassword;
     public String unionid;
     public String userRole;
     public String availableBalance;
     public String todayIncome;
     public String totalIncome;
     public String totalWithdraw;
     public int vipFansCount;
     public int svipFansCount;
     //是否违规
     public int illegal;


     public MyCenterMessageEntity(){}


     protected MyCenterMessageEntity(Parcel in) {
          userNickName = in.readString();
          userImage = in.readString();
          userPhone = in.readString();
          userCode = in.readString();
          modifyPayPassword = in.readByte() != 0;
          unionid = in.readString();
          userRole = in.readString();
          availableBalance = in.readString();
          todayIncome = in.readString();
          totalIncome = in.readString();
          totalWithdraw = in.readString();
          vipFansCount = in.readInt();
          svipFansCount = in.readInt();
          illegal = in.readInt();
     }

     public static final Creator<MyCenterMessageEntity> CREATOR = new Creator<MyCenterMessageEntity>() {
          @Override
          public MyCenterMessageEntity createFromParcel(Parcel in) {
               return new MyCenterMessageEntity(in);
          }

          @Override
          public MyCenterMessageEntity[] newArray(int size) {
               return new MyCenterMessageEntity[size];
          }
     };

     @Override
     public int describeContents() {
          return 0;
     }

     @Override
     public void writeToParcel(Parcel dest, int flags) {
          dest.writeString(userNickName);
          dest.writeString(userImage);
          dest.writeString(userPhone);
          dest.writeString(userCode);
          dest.writeByte((byte) (modifyPayPassword ? 1 : 0));
          dest.writeString(unionid);
          dest.writeString(userRole);
          dest.writeString(availableBalance);
          dest.writeString(todayIncome);
          dest.writeString(totalIncome);
          dest.writeString(totalWithdraw);
          dest.writeInt(vipFansCount);
          dest.writeInt(svipFansCount);
          dest.writeInt(illegal);
     }
}
